package com.jy.modules.cims.component.balance.servicefee.impl;

import java.math.BigDecimal;

import com.jy.modules.cims.component.balance.servicefee.BaseServiceFee;
import com.jy.modules.cims.data.common.dto.TCMmCostParamDTO;
import com.jy.modules.cims.data.dto.CreditDetailDto;

public class CK extends BaseServiceFee{

	//服务费
	public BigDecimal doServiceFee(CreditDetailDto creditDetailDto,
			TCMmCostParamDTO tcmmCostParamDto) {
		//获取服务费基数
		BigDecimal baseAmount = super.getBaseServiceFee(creditDetailDto, tcmmCostParamDto.getServiceFeeBase());
		//获取服务费率
		BigDecimal feeRate = tcmmCostParamDto.getServiceFeeRatio();
		return baseAmount.multiply(feeRate);
	}
}
